package printStream;

import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;

public class Demo2 {
    public static void main(String[] args) throws IOException {
        //字符打印流
        //1.创建对象
        PrintWriter pw  = new PrintWriter(new FileWriter("IODemo\\print.txt"));
        //2.输入数据
        pw.println(true);
        pw.println("熵增定律");
        pw.print("你好");
        pw.printf("%s,是 %s","你","谁");
        //3.释放数据
        pw.close();
    }
}
